package com.example.rabbitmq.producer.topic.controller;/**
 * ClassName: TopicController <br/> Description: <br/> date: 2022/1/24 11:09<br/>
 *
 * @author chenzhian<br />
 * @version
 */

import com.example.rabbitmq.producer.topic.sender.TopicSender;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: chenzhian
 * @Date: 2022/1/24 11:09
 * @Description:
 */
@RestController
@RequestMapping("/topic")
public class TopicController {
  @Resource
  private TopicSender topicSender;

  @PostMapping("/send")
  public void send() throws Exception {
    topicSender.send();
  }

  @PostMapping("/send2")
  public void send2() throws Exception {
    topicSender.send2();
  }

  @PostMapping("/send3")
  public void send3() throws Exception {
    topicSender.send3();
  }
}